<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var sum = 0;
        function getSum(num) {
            sum += num;
            if (num == 100) {
                return sum;
            } else {
                num++;
                getSum(num);
            }
        }
        getSum(1);
        console.log(sum);

        var count1 = 1;
        for (var j = 3; j > 0; j--) {
            count1 *= j;
        }
        console.log(count1);

        var number1 = 1;
        function getJi(num1) {
            number1 *= num1;
            if (num1 > 1) {
                num1--;
                getJi(num1);
            } else {
                return number1;
            }
        }

        getJi(3);
        console.log(number1);

    </script>
</body>

</html>